﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Small.PinBan.PB.Comm;
using SmallERP.MODEL.PBModel;
using Smallerp.Contracts;
using Smallerp.Contracts.DataContracts;
using System.ServiceModel;
//using Small.PinBan.PB.Comm;

namespace Small.PinBan.PB.View
{
    public interface IPBMainView
    {
        List<OrderInfo_PBDCT> GetSelectedOrder { get; }
        /// <summary>
        /// 得到快迅筛选的产品名称的关键字
        /// </summary>
        string GetFiltrateString { get; }

        void BindOrderList(List<OrderInfo_PBDCT> resltOrdersList);

        //客户选择的模板名称
        string SelectTemplateName { get; }
        string SelectOrderProductName { get; set; }
        string SelectPhotoSize { get; }//用户选择的照片尺寸
        List<int> SelectPhotoIdList { get; }//当前列表中选中的照片ID LIST

        //画刻度线
        void DrawScaleLine();

        //画刻度之前调整相应的控件的位置
        void InitCtlsLoaction();
        //绑定模板表
        //void BindCmbTempate(List<Tb_paperTemplate_Info> paperTemplateList);

        void BindPhotoSizeList(List<string> photoSizeList);

        //void BindClearGrid(List<PhotoInfo_PinBan> clearBoxPhotos);

        void ShowStatusMsg(string msg);

        void ShowPic(PicView picV);
        void ShowPic2(Array array);
        void ShowPicForAuto(Array array);
        void ClearBigBoard();
        void ClearBigBoard2();
        void ShowWaste(string p, Color c);

        void RefushMainGrid();

        /// <summary>
        /// 绑定照片列表
        /// </summary>
        /// <param name="BindPhotoList"></param>
        void BindPhotoList(List<PhotoInfo_PBDCT> BindPhotoList);

        void RushOrderGrid();

        void BindTemplateCmd(List<BoardTemplate_DCT> list);

        void RefushPanel();

        void RefushAutoNum(int Num);

        ChannelFactory<IOperateDB> _proxyOperateDB { get; set; }//创建代理
        IOperateDB _OperateDb { get; set; }

        void ShowParas(PrinterDCT printer);
        void BindPhotoList();

        void ShowWaste(decimal waste);
        void SetSelected();
        //void BindSuitOrder2(List<OrderInfo_PBDCT> rushList);
    }
}
